Page({
  data: {
    list: []
  },
  onLoad () {
    this.getList()
  },
  async getList () {
    const { data: res } = await wx.http.get('/announcement')
    this.setData({
      list: res
    })
  }
})
